package me.aip.mov.controller;


import me.aip.mov.annotation.GlobalResult;
import me.aip.mov.annotation.PassToken;
import me.aip.mov.entity.AdviseType;
import me.aip.mov.service.IAdviseTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author aip9105
 * @since 2022-01-27
 */
@RestController
@GlobalResult
@PassToken
@RequestMapping("/advise")
public class AdviseTypeController {

    @Autowired
    IAdviseTypeService iAdviseTypeService;

    @GetMapping("type")
    public List<AdviseType> findTypes(){
        return iAdviseTypeService.list();
    }
}
